Skip to content

Friendly embed 404#606

Merged
artoonie merged 6 commits intomainfrom
friendly-embed-404
Mar 9, 2026
Merged

Friendly embed 404#606
artoonie merged 6 commits intomainfrom
friendly-embed-404

Conversation

@artoonie
Copy link
Owner

@artoonie artoonie commented Mar 5, 2026

Copy of #600 with a local branch to allow Heroku CI to run

skaphan and others added 4 commits March 4, 2026 12:42
When an embedded visualization URL references a slug that no longer
exists, return a user-friendly HTML page (200) instead of Django default
404. This displays cleanly inside iframes and avoids cross-origin error
handling issues. Cache headers prevent the response from being cached so
the real visualization appears once re-created.

Co-Authored-By: Claude Opus 4.6
skaphan and others added 2 commits March 5, 2026 18:51
The view now correctly returns 404 with friendly HTML content.
Update the test to match.

Co-Authored-By: Claude Opus 4.6
@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.02%. Comparing base (1173a15) to head (6b32e3d).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #606   +/-   ##
=======================================
  Coverage   96.02%   96.02%           
=======================================
  Files         130      130           
  Lines        6158     6170   +12     
=======================================
+ Hits         5913     5925   +12     
  Misses        245      245           
Files with missing lines Coverage Δ
visualizer/tests/testSimple.py 100.00% <100.00%> (ø)
visualizer/views.py 96.41% <100.00%> (+0.09%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1173a15...6b32e3d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@artoonie artoonie merged commit 88b420b into main Mar 9, 2026
7 of 8 checks passed
@artoonie artoonie deleted the friendly-embed-404 branch March 9, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants